package com.hspedu.extends_.exercise;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/21
 * @time 17:20
 */
public class ExtendsExercise01 {
    public static void main(String[] args) {
        B b = new B();
    }
}

class A{
    A(){
        System.out.println("a");
    }

    A(String name){
        System.out.println("a name");
    }
}

class B extends A{
    B(){
        this("abc");
        System.out.println("b");
    }

    B(String name){
        System.out.println("b name");
    }
}
